cmake_minimum_required(VERSION 3.0)

project(ASIO)

set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_COMPILER g++-13)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON) #生成json文件

set(fileList 
    main.cpp io_thread_pool.cpp server.cpp msg_node.cpp logic.cpp session.cpp
)

set(LIB pthread)

add_executable(server ${fileList})
target_link_libraries(server ${LIB})


add_executable(client client.cpp)